3890bfae5224eca7a1e972c291168e1823181ec2,JSONArray.java,JSONArray,optBigDecimal,#number#BigDecimal#,636

Before Change


     */
    public BigDecimal optBigDecimal(int index, BigDecimal defaultValue) {
        try {
            return this.getBigDecimal(index);
        } catch (Exception e) {
            return defaultValue;
        }

After Change


     * @return The value.
     */
    public BigDecimal optBigDecimal(int index, BigDecimal defaultValue) {
        Object object = this.opt(index);
        if (JSONObject.NULL.equals(object)) {
            return defaultValue;
        }
        try {
            return new BigDecimal(object.toString());
        } catch (Exception e) {
            return defaultValue;
        }